Skip to main content
GET
/
v1
/
gateway-configs
/
{id}
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

const gatewayConfigView = await client.gatewayConfigs.retrieve('id');

console.log(gatewayConfigView.id);
{
  "id": "<string>",
  "name": "<string>",
  "endpoint": "<string>",
  "auth_mechanism": {
    "type": "<string>",
    "key": "<string>"
  },
  "create_time_ms": 123,
  "account_id": "<string>",
  "description": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique identifier of the GatewayConfig.

Response

Successfully retrieved the GatewayConfig.

A GatewayConfig defines a configuration for proxying API requests through the credential gateway. It specifies the target endpoint and how credentials should be applied.

id
string
required

The unique identifier of the GatewayConfig.

name
string
required

The human-readable name of the GatewayConfig. Unique per account (or globally for system configs).

endpoint
string
required

The target endpoint URL (e.g., 'https://api.anthropic.com').

auth_mechanism
object
required

How credentials should be applied to proxied requests.

create_time_ms
integer<int64>
required

Creation time of the GatewayConfig (Unix timestamp in milliseconds).

account_id
string | null

The account ID that owns this config.

description
string | null

Optional description for this gateway configuration.